package com.xuebusi.toutiao.admin.api.common.result;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class PageInfo<T> {
    private Long total_count;
    private Long page;
    private Long per_page;
    private List<T> results;

    public PageInfo(Long page, Long per_page, Long total_count, List<T> results) {
        this.page = page;
        this.per_page = per_page;
        this.total_count = total_count;
        this.results = results;
    }
}
